﻿using System.Windows.Forms;

namespace CrèchePager
{
    public static class Utils
    {
        public static Screen FindScreenToUse()
        {
            // Find the non-primary monitor...
            foreach (Screen screen in Screen.AllScreens)
            {
                if (!screen.Primary)
                {
                    return screen;
                }
            }
            // Could not find non-primary screen, goto primary screen for testing
            //MessageBox.Show("Using primary screen");
            return Screen.PrimaryScreen;
        }
    }
}
